package view;

import entity.Bullet;
import entity.Position;

import java.awt.*;

public class BulletView extends Bullet {

	public BulletView(Position position) {
		super(position);
	}
	
	public void draw(Graphics2D g2d) {
		drawShoot(g2d, this);
	}
	
	private void drawShoot(Graphics2D g2d,Bullet bullet) {
		Position position = bullet.getPosition();
		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		g2d.setColor(Color.WHITE);
		g2d.fillArc(position.getX(), position.getY(), Bullet.Round, Bullet.Round, 0, 360);
	}

}
